//###############
// FILE : SetupOutputAction.java
// WRITER : Lior Zimmerman liorz06 066462300
// WRITER : Ohad Dan ohad_dan 036767960
// EXERCISE : oop ex3 2008
// DESCRIPTION:
// Responsible of output format.
//###############
package oop.ex3.fileSearchController;

import oop.ex3.fileSearchView.GUIView;
import oop.ex3.fileSearchView.SetupTabInterface;

/**
 * Responsible of output format.
 */
public class SetupOutputAction extends Controller {

    /**
     * Initialize a new setup output.
     * @param gui Main frame.
     */
    public SetupOutputAction(GUIView gui) {
        super(gui);

    }

    /**
	 * Sets output profile at setup tab. 
	 */
    public void doAction() {
        SetupTabInterface setupView = _gui.getSetupView();
        setupView.setButtonOutputFile(!setupView.rdoToScreenSelected());
        setupView.txtOutputSetEnabled(!setupView.rdoToScreenSelected());
        CanRunAction runnable = new CanRunAction(_gui);
        runnable.doAction();
    }

}
